﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
  <class name="NStore.Domain.User, NStore.Domain"
         table="Users" lazy="false">
    <id name="Id"
        access="field.camelcase-underscore">
      <generator class="hilo" />
    </id>
    <property name="UserName"
              access="field.camelcase-underscore"
              length="50"
              unique="true"/>
    <property name="Password"
              access="field.camelcase-underscore"
              length="50"/>
    <property name="PasswordSalt"
              access="field.camelcase-underscore"
              length="50"/>
    <property name="Email"
              length="80"/>
    <set name="Roles"
         table="Roles"
         access="field.camelcase-underscore"
         lazy="false">
      <key column="id_user"/>
      <element column="Name" type="String"/>
    </set>
  </class>
</hibernate-mapping>
